<?php

namespace Rblog\Module\Index\Model;

class Setup extends \Rexzy\App\Model {
    
    protected $_table = 'setup';
    
    /**
     * 查询基本设置的内容 
     * 
     * @return array 
     */
    public function get() {
        $values = $this->selectAll( '*' );
        $result = array();
        foreach ( $values as $key => $val ) {
            $result[$val['keyword']] = $val['value'];
        }
        return $result;
    }
}
